package edu.gmu.middleware;

/**
 * CallbackBinding binds messageBinding (id/class type) to a Callback.
 * 
 * @author  James H. Pope
 * @version $Revision:$ $Date:$
 */
public class CallbackBinding
{
    private MessageBinding messageBinding = null;
    private Callback callback             = null;
    
    /**
     * Creates new CallbackBinding with specified parameters.
     * @param messageBinding
     * @param callback
     */
    public CallbackBinding( MessageBinding messageBinding, Callback callback )
    {
        this.messageBinding = messageBinding;
        this.callback       = callback;
    }
    
    /**
     * Gets messageBinding.
     * @return messageBinding
     */
    public MessageBinding getMessageBinding( )
    {
        return this.messageBinding;
    }
    
    /**
     * Gets callback.
     * @return callback
     */
    public Callback getCallback( )
    {
        return this.callback;
    }
                
}
